<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { envFunc } from "@/utils/util";
export default {
  name: "app",
  app() {
    return this.$store.state.app;
  },

  async mounted() {
    envFunc(
      () => {},
      () => {
        debugger;
        /*eslint-disable*/
        let correspond = new Correspond({
          systemId: "chebada.com",
          groupName: "webview",
          notify: false,
          userId: this.$route.query.uuid //取url里 uuid参数值
        });
        console.log('1');
        debugger 
        console.log('111');
        this.$store.commit("changeCorrespond", correspond);
      }
    );
  },
  beforeDestroy() {
    this.app.correspond.close()
  }
};
</script>

<style>
#app {
  width: 100%;
  height: 100%;
  background: rgba(248, 248, 248, 1);
  -webkit-overflow-scrolling: touch;
}
</style>
